import 'package:flutter/material.dart';

class Search extends StatefulWidget {
  @override
  _SearchState createState() => _SearchState();
}

class _SearchState extends State<Search> {
  @override
  Widget build(BuildContext context) {
    return Container(
      decoration: BoxDecoration(
          color: Color(0xffffffff), borderRadius: BorderRadius.circular(8.0)),
      alignment: Alignment.topCenter,
      width: 262,
      child: Row(
        children: <Widget>[
          Padding(
            child: Icon(
              IconData(0xe61e,fontFamily: 'iconFont'),
              color: Colors.grey,
            ),
            padding: EdgeInsets.only(left: 12),
          ),
          Expanded(
            child: Text(
              '消费券连抢10场',
              style: TextStyle(
                color: Colors.grey,
              ),
            ),
          ),
          Padding(
            child: VerticalDivider(
              width: 1,
            ),
            padding: EdgeInsets.only(top: 6, bottom: 6),
          ),
          Padding(
            child: Text(
              '搜索',
              style: TextStyle(
                  color: Theme.of(context).primaryColor,
                  fontWeight: FontWeight.w400),
            ),
            padding: EdgeInsets.only(left: 12, right: 12),
          )
        ],
      ),
    );
  }
}
